﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ModuloUsuarios : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Utileria util= new Utileria();
        if (Request.Cookies["Pruebas"] != null)
        {


            if (util.decodif_cadena(Request.Cookies["Pruebas"]["Tipo"]) == "PRUEBAS")
            {

                Response.Redirect("Pruebas.aspx");
                //PAGINA DE MARIO

            }
            else if (util.decodif_cadena(Request.Cookies["Pruebas"]["Tipo"]) == "CONSULTAR")
            {
               // Response.Redirect("MC.aspx");
            }
        }
        else
        {
            FormsAuthentication.SignOut();
            Response.Redirect("login.aspx");
        }
    }
    protected void lnkNuevoUsuario_Click(object sender, EventArgs e)
    {
        pnlOpciones.Visible = false;
        pnlNuevoUsuario.Visible = true;
    }
    protected void btnAgregaUsuario_Click(object sender, EventArgs e)
    {


    }
}
